Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | 4x 4x 4x 1x 4x 4x 4x 4x | <template>
<UDashboardPanel id="benchmark">
<template #header>
<PageHeader
:crumbs="[{ label: $t('benchmark.crumb'), to: '/benchmarks' }]"
:title="benchmark?.title ?? page?.title ?? $t('benchmark.notFound')"
>
<template #actions>
<BenchmarksMeta :benchmark :source />
</template>
</PageHeader>
</template>
<template #body>
<div class="flex min-w-0 flex-col gap-4">
<UBreadcrumb :items="crumbs" />
<UAlert
v-if="!page"
color="neutral"
variant="subtle"
icon="i-lucide-file-question"
:title="$t('benchmark.missing.title')"
:description="$t('benchmark.missing.description', { id })"
/>
<template v-else>
<UPageBody class="mt-0 max-w-4xl">
<ContentRenderer :value="page" />
</UPageBody>
<USeparator class="my-4" />
<NeighbourLinks
v-bind="around"
:before="$t('benchmark.previous')"
:after="$t('benchmark.next')"
/>
</template>
</div>
</template>
</UDashboardPanel>
</template>
<script setup lang="ts">
const { id, page, benchmark, source, crumbs, around, ready } = useBenchmarkPage();
await ready;
if (!page.value) setResponseStatus(404);
</script>
|